/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Caio
 */
public class AnimalWorld {
    
    private final Herbivore herbivore;
    private final Carnivore carnivore;
    
    public AnimalWorld(ContinentFactory factory){
        carnivore=factory.CreateCarnivore();
        herbivore=factory.CreateHerbivore();
    }
    public void RunFoodChain(){
        carnivore.Eat(herbivore);
    }
}
